<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<!DOCTYPE html>
<html>
<head>
    <title>量表分类</title>
    <t:base type="jquery,easyui,tools"></t:base>
    <script type="text/javascript">
        $(function () {
            $('#cc').combotree({
                url: 'questSortController.do?setPFunction',
                width: 155,
                onSelect: function (node) {
                    $("#cc").val(node.text);
                    $("#pp").val(node.id);
                }
            });
        });
    </script>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" layout="div" dialog="true" action="questSortController.do?save">
    <input id="qsId" name="qsId" type="hidden" value="${entity.qsId}">
    <fieldset class="step">
        <div class="form">
            <label class="Validform_label"> 分类名称: </label>
            <input name="name" class="inputxt" value="${entity.name}" datatype="s1-20">
            <span class="Validform_checktip"></span>
        </div>
        <div class="form">
            <label class="Validform_label"> 分类描述: </label>
            <input name="qDesc" class="inputxt" value="${entity.qDesc }">
        </div>
        <div class="form">
            <label class="Validform_label"> 上级分类: </label>
            <input id="cc" name="parentQS.name" value="${entity.parentQS.name}">
            <input id="pp" name="parentQS.qsId" hidden="hidden" value="${entity.parentQS.qsId}">
            <%--<input id="clsButton" type="button" value="清空" style="width: 45px;"/>--%>
        </div>
        <div class="form">
            <label class="Validform_label"> 排序: </label>
            <input id="sort" name="sort" value="${entity.sort}" datatype="num" style="width: 150px;">
        </div>
    </fieldset>
</t:formvalid>
</body>
<script type="text/javascript">
    $(function(){
//        $("#clsButton").click(function(){
//            alert( $("#cc").val());
//            alert( $("#pp").val());
//            $("#cc").attr("value","");
//        });
    });

</script>
</html>
